package com.boot.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.boot.common.utils.PageUtils;
import com.boot.mall.product.entity.AttrGroupEntity;
import com.boot.mall.product.vo.AttrGroupWithAttrsVo;
import com.boot.mall.product.vo.SkuItemVo;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author huihui
 * @email 2565036109@qq.com
 * @date 2021-05-06 18:43:57
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    // 分页查询
    PageUtils pageQuery(Map<String, Object> params, Long categoryId);

    // 查询分组分类的完整信息
    AttrGroupEntity getAttrGroupById(String attrGroupId);

    List<AttrGroupWithAttrsVo> getAttrGroupWithAttrsByCatId(String categoryId);

    List<SkuItemVo.SpuItemGroupAttr> getAttrGroupWithAttrsBySpuId(Long spuId, Long catalogId);
}

